package com.cangxuan.app.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 藏品实体类
 */
public class Goods implements Serializable {

    private Integer id;
    private String name;        //藏品名称
    private Integer mintage;    //铸造量
    private Integer circulation;    //流通量
    private Float price;      //发售价
    private Integer issuerId;      //发行方ID
    private Integer seriesId;    //系列ID
    private String blockchain;  //区块链信息
    private String code;        //藏品编号
    private String hash;        //交易哈希
    private LocalDateTime releaseDate;  //发售日期
    private String image;       //藏品图片
    private float feeRate;      //手续费率

    private boolean recommend;  //是否推荐
    private boolean news;       //是否新品

    private boolean active;     //是否激活，二级市场是还显示
    private String issuer;

    public Goods() {
    }

    public Goods(Integer id, String name, Integer mintage, Integer circulation, Float price, Integer issuerId,
                 Integer seriesId, String blockchain, String code, String hash, LocalDateTime releaseDate, String image,
                 float feeRate, boolean recommend, boolean news, boolean active,String issuer) {
        this.id = id;
        this.name = name;
        this.mintage = mintage;
        this.circulation = circulation;
        this.price = price;
        this.issuerId = issuerId;
        this.seriesId = seriesId;
        this.blockchain = blockchain;
        this.code = code;
        this.hash = hash;
        this.releaseDate = releaseDate;
        this.image = image;
        this.feeRate = feeRate;
        this.recommend = recommend;
        this.news = news;
        this.active = active;
        this.issuer=issuer;
    }

    public String getIssuer() {
        return issuer;
    }

    public void setIssuer(String issuer) {
        this.issuer = issuer;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getMintage() {
        return mintage;
    }

    public void setMintage(Integer mintage) {
        this.mintage = mintage;
    }

    public Integer getCirculation() {
        return circulation;
    }

    public void setCirculation(Integer circulation) {
        this.circulation = circulation;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Integer getIssuerId() {
        return issuerId;
    }

    public void setIssuerId(Integer issuerId) {
        this.issuerId = issuerId;
    }

    public Integer getSeriesId() {
        return seriesId;
    }

    public void setSeriesId(Integer seriesId) {
        this.seriesId = seriesId;
    }

    public String getBlockchain() {
        return blockchain;
    }

    public void setBlockchain(String blockchain) {
        this.blockchain = blockchain;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }

    public LocalDateTime getReleaseDate() {
        return releaseDate;
    }

    public void setReleaseDate(LocalDateTime releaseDate) {
        this.releaseDate = releaseDate;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public float getFeeRate() {
        return feeRate;
    }

    public void setFeeRate(float feeRate) {
        this.feeRate = feeRate;
    }

    public boolean isRecommend() {
        return recommend;
    }

    public void setRecommend(boolean recommend) {
        this.recommend = recommend;
    }

    public boolean isNews() {
        return news;
    }

    public void setNews(boolean news) {
        this.news = news;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }



    public Goods(Integer id, String name, Integer mintage, Float price, String image) {
        this.id = id;
        this.name = name;
        this.mintage = mintage;
        this.price = price;
        this.image = image;
    }

    public Goods(Integer id,String code, String name, Float price) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.code = code;
    }
}
